//
//  HZ_Radio_tableCell.m
//  HZ_Beautiful_Music
//
//  Created by dllo on 16/4/5.
//  Copyright © 2016年 ui. All rights reserved.
//

#import "HZ_Radio_tableCell.h"
@interface HZ_Radio_tableCell ()


@property (nonatomic, strong) UILabel *label;

@end
@implementation HZ_Radio_tableCell
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    
    if (self) {
        
        
        self.backgroundColor = [UIColor colorWithWhite:0.872 alpha:1.000];
        
        self.label = [[UILabel alloc] init];
        
        self.label.backgroundColor = [UIColor colorWithWhite:0.872 alpha:1.000];
        self.label.textAlignment = 1;
        
        
        
        [self.contentView addSubview:self.label];
        
        
    }
    
    
    
    return self;
    
    
    
    
}

-(void)layoutSubviews{
    
    [super layoutSubviews];
    
    self.label.frame = CGRectMake(0, 0, self.bounds.size.width, self.bounds.size.height);
    
    
    
}



-(void)setModel:(HZ_Radio_Model *)model{
    
           _model = model;
    

            self.label.text = _model.tag_type_name;

}
- (void)setIsCurrentIndex:(BOOL)isCurrentIndex{
    
    _isCurrentIndex = isCurrentIndex;
    if (_isCurrentIndex == 1) {
        self.label.textColor = [UIColor redColor];
    }else {
        self.label.textColor = [UIColor blackColor];
    }
    
    
    
    
    
    
    
    
}

//-(void)setNstring:(NSString *)nstring{
//    
//    _nstring = nstring;
//    NSLog(@"6666666%@", _nstring);
//    
//    if (self.nstring) {
//        
//        
//        

//    }
    
    
    
    
    
    
//}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
